/**
 * 
 */
package server.container;

/**
 * @author Christian
 * 
 */
public class JPushInfo extends UserAlarm {
	
	public static final int PROWL = 1;
	
	public static final int NOTIFYMYANDROID = 2;
	
	private int pushInfoTyp = -1;
	
	private String userAPIKey = "";
	
	private String prioritaet = "";
	
	/**
	 * @author Christian
	 * @param prowlId
	 * @param prioritaet
	 */
	public JPushInfo(int userId, EinsatzAlarm alarm, String userAPIKey, String prioritaet, int pushInfoTyp) {

		super(userId, alarm);
		this.userAPIKey = userAPIKey;
		this.prioritaet = prioritaet;
		this.pushInfoTyp = pushInfoTyp;
	}

	
	/**
	 * @return the prowlId
	 */
	public String getUserAPIKey() {
	
		return userAPIKey;
	}

	
	/**
	 * @param prowlId the prowlId to set
	 */
	public void setProwlId(String prowlId) {
	
		this.userAPIKey = prowlId;
	}

	
	/**
	 * @return the prioritaet
	 */
	public int getPrioritaet() {
	
		return Integer.parseInt(prioritaet);
	}

	
	/**
	 * @param prioritaet the prioritaet to set
	 */
	public void setPrioritaet(String prioritaet) {
	
		this.prioritaet = prioritaet;
	}


	@Override
	public String getBlockIdentifier() {
		
		return blockIdentifier + "push";
	}
	
	public int getPushInfoTyp() {
		return pushInfoTyp;
	}
}
